|
SET TEXTURE MD3
This command will set the specified object to use a special set of textures.
SET TEXTURE MD3 Object Number, H0, H1, L0, L1, L2, U0
Object Number
Integer
The object number
H0
Integer
The h0 texture number
H1
Integer
The h1 texture number
L0
Integer
The l0 texture number
L1
Integer
The l1 texture number
L2
Integer
The u0 texture number
U0
Integer
The u1 texture number
This command does not return a value.
The object must have been previously loaded as an MD3 model. MD3 models are blank by default and require this command to provide the textures. The six texture parameters H0, H1, L0, L1, L2 and U0 are values to images you must load prior to calling this command.
sync on : sync rate 60
load object "model.md3",1
load image "H0.bmp",1
load image "H1.bmp",2
load image "L0.bmp",3
load image "L1.bmp",4
load image "L2.bmp",5
load image "U0.bmp",6
set texture md3 1,1,2,3,4,5,6
do
sync
while mouseclick()=0
delete object 1
end
BASIC3D Commands Menu
Index
|